home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / A_C / BRIDE104.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-11-24  |  3KB  |  132 lines

  1. @echo off
  2.  
  3. Rem /  Batch File Installer for
  4. Rem /      Modern Bride
  5. Rem /      version 1.04
  6. Rem /  (c) 1993 Virgin Games
  7. Rem /  MJS11.23
  8.  
  9. cls
  10. if exist bride104.exe goto NOERR
  11. goto ERR3
  12.  
  13. :NOERR
  14. if %1x==x goto TryDefault
  15. if exist %1\WEDMAIN.EXE goto DO_IT
  16. goto ERR
  17.  
  18. :TryDefault
  19. if exist c:\bride\wedmain.exe goto CONTINUE
  20. goto usage
  21.  
  22. :CONTINUE
  23. echo Detected default install directory. 
  24. echo.
  25. set BRIDEPTH=C:\BRIDE
  26. if %BRIDEPTH%==C:\BRIDE goto DO_IT2
  27. goto ERR2
  28.  
  29. :DO_IT
  30. set BRIDEPTH=%1
  31. if %BRIDEPTH%==%1 goto DO_IT2 
  32. goto ERR2
  33.  
  34. :DO_IT2
  35. echo One moment please...
  36. echo.
  37. for %%A in (WEDMAIN.EXE WEDMAIN.HLP) do del %BRIDEPTH%\%%A
  38. for %%A in (ETIQUETT.HLP CHECKS.PX CHECKS.DB) do del %BRIDEPTH%\%%A
  39. for %%A in (TIPS.HLP README.WRI) do del %T7GPTH%\%%A
  40. echo Loading update information...
  41. copy \BRIDE104.EXE %BRIDEPTH% > NUL
  42. echo Updating old files... 
  43. echo.
  44. %BRIDEPTH%\BRIDE104.EXE %BRIDEPTH% 
  45. del %BRIDEPTH%\BRIDE104.EXE
  46. pause
  47. if exist %BRIDEPTH%\BRIDE104.TXT goto SUCCESS
  48. goto ERROR
  49.  
  50. :ERR3
  51. echo.
  52. echo           ────────  BRIDE104.EXE file not found  ─────────
  53. echo.
  54. echo           Please ensure that the install is run from the 
  55. echo           floppy disk drive.
  56. echo.
  57. echo           For example, you should be typing:
  58. echo           A:
  59. echo           INSTALL
  60. echo.
  61. echo.
  62. goto ERROR
  63.  
  64. :ERR2
  65. echo.
  66. echo           ───────  Not enough environment space   ───────
  67. echo                  to finish installation of update.
  68. echo.
  69. echo            Please increase the environment space before 
  70. echo            running the install. 
  71. echo.
  72. echo            For example, add: 
  73. echo            SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p /e:256
  74. echo            to you CONFIG.SYS file.
  75. echo.
  76. echo            Do NOT run the install from Windows.
  77. echo.
  78. echo.
  79. goto ERROR
  80.  
  81. :ERR
  82. echo. 
  83. echo      *** Could not find Modern Bride files in: 
  84. echo          %1 
  85. echo          please check path.
  86.  
  87. :USAGE
  88. echo. 
  89. echo      To update your installation of Modern Bride, type "INSTALL"
  90. echo      followed by a space and the name of the directory where the
  91. echo      Modern Bride files were originally installed.
  92. echo. 
  93. echo      For example, if the update files are located on a disk in
  94. echo      drive A:, and Modern Bride was originally installed to D:\BRIDE, 
  95. echo      the commands would look like this:
  96. echo. 
  97. echo      A:
  98. echo      INSTALL D:\BRIDE
  99. echo. 
  100. goto end
  101.  
  102. :ERROR
  103. echo           ─── Failed attempt to update Modern Bride ────
  104. echo.
  105. echo                  For assistance, please contact 
  106. echo                  Virgin Games Technical Support
  107. echo                         (714) 833-1999
  108. goto end
  109.  
  110. :SUCCESS
  111. cls
  112. echo      ───────── Updated "Modern Bride" to version 1.04 ─────────
  113. echo.
  114. echo      Do NOT re-install Modern Bride from the original disks or else
  115. echo      the updated files will be overwritten.
  116. echo.
  117. echo.
  118. echo.
  119. echo.
  120. echo.
  121. echo.
  122. echo.
  123. echo.
  124. echo.
  125. echo.
  126. echo.
  127.  
  128. :END
  129. set BRIDEPTH=
  130. echo. 
  131.  
  132.